package cn.itcast.nems.studentrecord.dao.mapper;

import cn.itcast.nems.studentrecord.dao.condition.JournalTransferParams;
import cn.itcast.nems.studentrecord.dao.condition.SearchClazzParams;
import cn.itcast.nems.studentrecord.dao.dataobject.JournalTransferAndLineId;
import cn.itcast.nems.studentrecord.dao.dataobject.JournalTransferPageDataExt;
import cn.itcast.nems.studentrecord.dao.entity.JournalTransfer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface JournalTransferMapper extends BaseMapper<JournalTransfer> {

    IPage<JournalTransferPageDataExt> selectPageData(Page<?> objectPage, @Param("param") JournalTransferParams params);

    IPage<Map> searchClazzes(Page<?> objectPage,@Param("param") SearchClazzParams params);

    List<JournalTransferAndLineId> findLineByOriginStudentRecordId(@Param("originStudentRecordIdList") List<String> originStudentRecordIdList);
}
